<?php

class HelpedSuggest extends Portlet {

    public $item_id;
    public $user_id;
    public $owner_id;
    public $is_helped;

    protected function renderContent() {
        $fl = !in_array($this->user_id, $this->is_helped) && Y::isAuthed() && $this->user_id != $this->owner_id ? true : false;
        $this->render('helped_suggest', array(
            'is_helped'=>$this->is_helped,
            'fl' => $fl,
            "count" => count($this->is_helped),
            'user_id' => $this->user_id,
            "item_id" => $this->item_id
        ));
    }
}
